package com.insurance.service.impl;

import com.insurance.mapper.BrandMapper;
import com.insurance.pojo.Brand;
import com.insurance.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: drc
 * Date: 2020/10/28 8:51
 * Description:
 * Version: V1.0
 */
@Service
public class BrandServiceimpl implements BrandService {
    @Autowired(required = false)
    private BrandMapper brandMapper;
    @Override
    public int addBrand(Brand brand) {
        return brandMapper.addBrand(brand);
    }

    @Override
    public int updateBrand(Brand brand) {
        return brandMapper.updateBrand(brand);
    }

    @Override
    public  List<Map> findBrand() {
        return brandMapper.findBrand();
    }
}
